Carbon


Draw1Control

Header: Controls.h Carbon status: Supported

Draws a control and any embedded controls that are currently visible in the specified window.

void Draw1Control (
    ControlRef theControl
);
Parameter descriptions
theControl

A handle to the control to draw.

DISCUSSION

Although you should generally use the function UpdateControls to update controls, you can use the DrawOneControl function to update a single control. If an embedding hierarchy exists and the control passed in has embedded controls, DrawOneControl draws the control and embedded controls. If the root control for a window is passed in, the result is the same as if DrawControls was called.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)